/**
 * 
 */
package com.rio.dandan.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.rio.dandan.dao.UserRequireDao;
import com.rio.dandan.pojo.UserRequire;
import com.rio.dandan.service.UserRequireService;

/**
 * 
 * UserAccountServiceImpl.java
 * 
 * @author 宋陆
 * @version 1.0 2014-5-14
 */
@Service
public class UserRequireServiceImpl implements UserRequireService {


    @Resource
    private UserRequireDao userRequireDao;

    /**
     * @see com.rio.dandan.service.UserRequireService#getUserRequire(java.lang.String)
     */
    @Override
    public UserRequire getUserRequire(String uid) {
        return userRequireDao.getUserRequire(uid);
    }

    /**
     * @see com.rio.dandan.service.UserRequireService#updateUserRequire(com.rio.dandan.pojo.UserRequire)
     */
    @Override
    public UserRequire updateUserRequire(UserRequire userRequire) {
        userRequireDao.saveOrUpdateUserRequire(userRequire);
        return userRequire;
    }

    
}
